# Contributor:
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=phonon
pkgver=4.11.1
pkgrel=2
pkgdesc="KDE multimedia backend"
url="https://userbase.kde.org/Phonon"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="LGPL-2.1-or-later"
depends_dev="qt5-qtdeclarative-dev glib-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qtbase-dev qt5-qttools-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/stable/phonon/$pkgver/phonon-$pkgver.tar.xz"
options="!check" # No test configuration file found!

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE \
		-DPHONON_BUILD_PHONON4QT5=ON
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="858b2b0d7b0336af76d226b30f3acd1914e7297e0879d5a417fa1b87b13c812f9aab7e20adcad33ce1a03624ce78323dd9968b4b277caf85f800ca60aa134f74  phonon-4.11.1.tar.xz"
